package pl.edu.agh.nn.data.provider;

import pl.edu.agh.nn.conf.InvalidNetworkConfigurationException;

public class SimpleDataProvider implements InputDataProvider {

	private boolean hasData = true;
	private final double[] data;

	public SimpleDataProvider(double[] data) {
		this.data = data;
	}

	@Override
	public boolean hasData() {
		return hasData;
	}

	@Override
	public double[] nextData() {
		hasData = false;
		return data;
	}

	@Override
	public void finish() {
		// do nothing
	}

	@Override
	public void configure() throws InvalidNetworkConfigurationException {
		// do nothing
	}

}
